package org.example.service;

import org.example.pojo.Category;
import org.springframework.stereotype.Service;

import java.util.List;

public interface CategoryService {
    //新增分类
    void add(Category category);
    //查询文章分类
    List<Category> list();
    //文章分类详细
    Category findById(Integer id);
    //根据id更新文章分类
    void update(Category category);
    //根据id删除文章分类
    void delete(Integer id);
}
